/* Comment block

WowBB Copyright (c) 2003-2005 Aycan Gulez

Shades Admin Template File


Control Character Meanings

   #   Start template. A template ends where another starts
          Example: #user_profile

   !   Include template. Inserts a template inside another one, may take arguments
          Example 1: !site_header
          Example 2: !site_header($page_title='My page title')

   $   Variable. Replaced with a value
          Example: $user_email can be replaced with "foo@domain.com"

   ?   Conditional printing. Prints the first argument if a variable exists or equals to a value.
          Example 1: ?if_variable_exists('prints the first argument' : 'else the second')
          Example 2: ?user_email('<B>%user_email:</B> $user_email' : '%user_email_private')

          Example 3: ?if_variable='value'('prints the first argument' : 'else the second')
          Example 4: ?user_email='email@domain.com'('Hey that\'s our e-mail address! :)' : '$user_email')

   %   Text label. Replaced with corresponding text in selected language
          Example: %email will be replaced with "E-mail" in English and "E-posta" in Turkish.

   ~   Include theme. Makes a theme inherit all the templates of another theme.
          Example: ~default/main_templates.txt


Important remark:
The control characters #, !, ?, ~ must be the first characters in a line.
There is no such limitation for $, %.

*/


~default/admin_templates.txt


#admin_header
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
   <META HTTP-EQUIV="Content-Type" content="text/html; charset=$language_charset">
   <TITLE>$page_title</TITLE>
   <LINK REL="stylesheet" TYPE="text/css" HREF="themes/shades/style_sheet.css$refresher">

<SCRIPT TYPE="text/javascript">

var browser_type;
var browser_version;
var load_complete;
var hr_old_pos;


function init()
{
   load_complete = true;
   navigator.userAgent.indexOf("MSIE") != -1 ? browser_type = "MSIE" : browser_type = "Netscape";
   if (browser_type == "MSIE")
      {
         browser_version = navigator.userAgent.substr(navigator.userAgent.indexOf("MSIE") + 5, 3);
         if (navigator.userAgent.indexOf("Mac_PowerPC") != -1)
            browser_version = "Mac";
      }
   else
      {
         if (navigator.userAgent.indexOf("Gecko") != -1)
            browser_type = "Gecko";
      }
   $more_init_code
}

!menu_code


function toggle_help()
{
   if (!load_complete)
      return;

   var help = get_element("help");
   help.style.display == "none" ? help.style.display = "block" : help.style.display = "none";
}


function init_item_height(id)
{
   od                            = get_element(id).style.display;
   get_element(id).style.display = "block";
   h                             = get_element(id).offsetHeight;
   get_element(id).style.display = od;
   return h;
}


function show_item(id, items, no_href)
{
   if (browser_type == "Netscape")
      return;

   if (isNaN(items[1]))
      items[1] = init_item_height(items[1]);

   c = items.length;
   for (i = 2; i < c; i++)
      (items[i] == id) ? get_element(items[i]).style.display = "block" : get_element(items[i]).style.display = "none";
   get_element(id).style.height = items[1];

   if (!no_href)
      {
         get_element('m_' + items[0]).className = "foldernormal";
         get_element('m_' + id).className       = "folderselected";
      }

   items[0] = id;
   return items;
}


function get_ready_for_submit(items)
{
   if (browser_type == "Netscape")
      return;

   c = items.length;
   for (i = 2; i < c; i++)
      if (items[i] != items[0])
         {
            get_element(items[i]).style.overflow = "hidden";
            get_element(items[i]).style.height   = "1px";
            get_element(items[i]).style.display  = "block";
         }
}


function swap_fields(field_name, pos1, pos2)
{
   var temp;
   eval("temp = " + field_name + pos2 + ".value;");
   eval(field_name + pos2 + ".value = " + field_name + pos1 + ".value;");
   eval(field_name + pos1 + ".value = temp;");
}


function move_entry(direction)
{
   current_pos = mv_fields[0];
   num_lines   = mv_fields[1];
   new_pos     = current_pos;

   if (num_lines == 0)
      return;

   if ((direction == "up") && (current_pos != 1))
      new_pos--;
   else if ((direction == "dn") && (current_pos != num_lines))
      new_pos++;

   num_fields = mv_fields.length;
   for (i = 2; i < num_fields; i++)
      swap_fields(mv_fields[i], current_pos, new_pos);

   highlight_row2(new_pos);
   eval(mv_fields[2] + new_pos + ".focus();");
   mv_fields[0] = new_pos;
}


function highlight_row2(row_id)
{
   if (row_id != hr_old_pos)
      {
         highlight_row(row_id);
         if (hr_old_pos)
            highlight_row(hr_old_pos);
         hr_old_pos = row_id;
      }
   if (row_id)
      mv_fields[0] = row_id;
}


function do_nothing()
{
}


</SCRIPT>

</HEAD>
<BODY CLASS="body" BACKGROUND="themes/default/page_bg.gif" onload="init()" onmousedown="hide_menu(event)">
<TABLE WIDTH="100%" BORDER="0">
<TR>
   <TD CLASS="clean"><A HREF="./"><IMG SRC="$board_logo" BORDER="0" ALT="%board_home"></A></TD>
   <TD CLASS="clean" ALIGN="right">
!button_set_start
$main_menu
!button_set_end
   </TD>
</TR>
</TABLE>
<DIV CLASS="statusmessage" DIR="$text_direction">$status_message</DIV>

#admin_footer
<BR><BR>
<DIV CLASS="statusline" DIR="$text_direction">$wowbb_copyright<BR>$page_processing_time $number_of_queries</FONT></DIV>
$query_list

</BODY>
</HTML>
<!--WowBB separator-->

#eof
End of file - do not remove this and the above line.
